const config = {
    baseUrl: 'http://localhost:3000',
    api: {
        login: '/login',
        uploadChunk: '/upload-chunk',
        softwareList: '/software-list',
        software: '/software',
        users: '/users',
        authorize: '/authorize'
    }
};

// 获取完整的API URL
function getApiUrl(endpoint) {
    return config.baseUrl + config.api[endpoint];
}

